<?php
/**
 * @var $models array
 * @var $model Article
 *
 */
?>
<h3 class="title"><?php echo Yii::t('site/general','News'); ?></h3>
<?php if(count($models)) :?>
    <ul class="latest-new">
    <?php foreach ($models as $model) : $detailUrl = Yii::app()->createUrl('/Article/default/view',array('cat_id'=>$model->category_id,'locale'=>$model->localeArticle->locale,'id'=>$model->localeArticle->article_id,'alias'=>$model->localeArticle->alias)); ?>
        <li class="clearfix">
            <a href="<?php echo $detailUrl; ?>"><img src="<?php echo image_path($model->image);?>" width="45" alt="<?php echo $model->localeArticle->title;?>"/></a>
            <a href="<?php echo $detailUrl; ?>"><?php echo $model->localeArticle->title;?></a>
        </li>
    <?php endforeach;?>
    </ul>
<?php endif;?>